From 82f9e73aba375063f0102880476de4c8bbd30b1d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 22 Jun 2004 15:34:02 +0000 Subject: [PATCH] Make sure this gets defined for all backends, so linux-fb has a chance of * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure this gets defined for all backends, so linux-fb has a chance of compiling. --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/gtkselection.c | 8 ++++---- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8bdca6f54..d8f6f9e3a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-06-22 Matthias Clasen + * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure + this gets defined for all backends, so linux-fb has a + chance of compiling. + * gdk/x11/gdkgc-x11.c: * gdk/gdkgc.c: Move function docs inline, add hints about obtaining rgb colors from gcs. (#144688, Steve Chaplin) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e8bdca6f54..d8f6f9e3a0 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2004-06-22 Matthias Clasen + * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure + this gets defined for all backends, so linux-fb has a + chance of compiling. + * gdk/x11/gdkgc-x11.c: * gdk/gdkgc.c: Move function docs inline, add hints about obtaining rgb colors from gcs. (#144688, Steve Chaplin) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e8bdca6f54..d8f6f9e3a0 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2004-06-22 Matthias Clasen + * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure + this gets defined for all backends, so linux-fb has a + chance of compiling. + * gdk/x11/gdkgc-x11.c: * gdk/gdkgc.c: Move function docs inline, add hints about obtaining rgb colors from gcs. (#144688, Steve Chaplin) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e8bdca6f54..d8f6f9e3a0 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2004-06-22 Matthias Clasen + * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure + this gets defined for all backends, so linux-fb has a + chance of compiling. + * gdk/x11/gdkgc-x11.c: * gdk/gdkgc.c: Move function docs inline, add hints about obtaining rgb colors from gcs. (#144688, Steve Chaplin) diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 83374ff355..a33e63a25c 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -67,15 +67,15 @@ /* Maximum size of a sent chunk, in bytes. Also the default size of our buffers */ -#ifdef GDK_WINDOWING_WIN32 -/* No chunks on Win32 */ -#define GTK_SELECTION_MAX_SIZE(display) G_MAXINT -#else +#ifdef GDK_WINDOWING_X11 #define GTK_SELECTION_MAX_SIZE(display) \ MIN(262144, \ XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) == 0 \ ? XMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100 \ : XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100) +#else +/* No chunks on Win32 */ +#define GTK_SELECTION_MAX_SIZE(display) G_MAXINT #endif #define IDLE_ABORT_TIME 300 -- 2.30.2